import { translateTitle } from '@/utils/i18n'
const ConstantInformationMaintenance = {
  ConstantInformationMaintenance: {
    search: {
      form: {
        method: 'dams.costant.query',
        name: 'search',
        field: [
          {
            type: 'input',
            name: 'CONST_NAME',
            label: translateTitle('Dams.ApplicationInterface.常量代码'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'REMARK',
            label: translateTitle('Dams.ApplicationInterface.常量代码描述'),
            labelHidden: false,
          },
          {
            type: 'button',
            label: translateTitle('Dams.ApplicationInterface.查询'),
            labelHidden: true,
          },
        ],
      },
    },
    dialog: {
      form: {
        method: '',
        name: 'dialog',
        field: [
          {
            type: 'input',
            name: 'CONST_NAME',
            label: translateTitle('Dams.ApplicationInterface.常量代码'),
            isRules: true,
          },
          {
            type: 'input',
            name: 'REMARK',
            label: translateTitle('Dams.ApplicationInterface.常量代码描述'),
            isRules: true,
          },
          {
            type: 'select',
            name: 'GROUP_NAME',
            isMultiple: true,
            label: translateTitle('Dams.ApplicationInterface.常量分组'),
            options: [],
            filterable: true,
            isRules: true,
          },
          {
            type: 'input',
            name: 'ENUM_VALUE',
            label: translateTitle('Dams.ApplicationInterface.枚举'),
            isRules: true,
          },
          {
            type: 'input',
            name: 'CONST_RESOURCE',
            label: translateTitle('Dams.ApplicationInterface.来源备注'),
            isRules: true,
          },
          {
            type: 'input',
            name: 'TYPE',
            label: translateTitle('Dams.ApplicationInterface.常量类型'),
            isRules: true,
          },
          {
            type: 'select',
            name: 'SUB_SYSTEM',
            label: translateTitle('Dams.ApplicationInterface.所属子系统'),
            options: [],
            filterable: true,
            isRules: true,
          },
          {
            type: 'button',
            label: translateTitle('Dams.ApplicationInterface.提交'),
            labelHidden: true,
          },
        ],
      },
    },
    addMethod: 'dams.costant.add',
    updateMethod: 'dams.costant.edit',
    deleteMethod: 'dams.costant.delete',
  },
}
export default ConstantInformationMaintenance
